package org.springblade.modules.admin.vo;

import cn.hutool.core.date.DateUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 用户签到明细表
 */
@Data
public class UserSignDetailPageVo {

	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	public void setCalendarId(Long calendarId) {
		System.out.println(calendarId);
		this.calendarId = calendarId;
	}

	private Long calendarId;

	private String userName;

	private String groupName;

	private String signTime;

	private String signAddress;


	private Integer signBeLate;

	private String newSignDesc;

	private String signOutTime;

	private String signOutAddress;

	private Integer signOutLeaveEarly;

	private String newSignOutDesc;

	private Long signDate;

	private Integer signType;

	private Integer signOutType;

	private  Integer holiday;

	private  Integer week;




	public void setSignTime(Long signTime) {
		String format = DateUtil.format(DateUtil.date(signTime), "yyyy-MM-dd HH:mm:ss");
		this.signTime = format;
	}

	public void setSignOutTime(Long signOutTime) {
		String format = DateUtil.format(DateUtil.date(signOutTime), "yyyy-MM-dd HH:mm:ss");
		this.signOutTime = format;
	}

}
